package com.amado.course49AnonymousClass;

public class Student {
	private String name;
	private Integer age;
	private Integer money;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Student(String name, Integer age) {
		super();
		this.name = name;
		this.age = age;
	}	public Student(String name, Integer age,Integer money) {
		super();
		this.name = name;
		this.age = age;
		this.money = money;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	@Override
	public String toString() {
		return "Student{" +
				"name='" + name + '\'' +
				", age=" + age +
				", money=" + money +
				'}';
	}
}
